<!DOCTYPE html>
<html>
<head>
    {{template "backend/block/header.html" .}}
</head>
{{template "backend/block/js.html" .}}
<body class="hold-transition sidebar-mini">
<div class="wrapper">
    <!-- Navbar -->
    {{template "backend/block/nav.html" .}}
    <!-- /.navbar -->

    <!-- Main Sidebar Container -->
    {{template "backend/block/sidebar.html" .}}

    <!-- Content Wrapper. Contains page content -->
    <div class="content-wrapper">
        {{.LayoutContent}}
        <!-- /.content -->
    </div>

    <!-- /.content-wrapper -->
    <footer class="main-footer">
        <div class="float-right d-none d-sm-block">
            <b>Version</b> {{.Admin.Version}}
        </div>
        <strong>Copyright &copy; 2019-{{.Admin.Year}} <a
                    href="{{urlfor "AdminController.Welcome"}}">{{.Admin.Title}}</a>.</strong> All rights
        reserved.
    </footer>

    <!-- Control Sidebar -->
    <aside class="control-sidebar control-sidebar-dark">
        <!-- Control sidebar content goes here -->

    </aside>
    <!-- /.control-sidebar -->
</div>
<!-- ./wrapper -->
<script>
    var message;
    layui.config({
        base: '/static/js/'
    }).use(['app', 'message'], function() {
        var app = layui.app,
            $ = layui.jquery,
            layer = layui.layer;
        //将message设置为全局以便子页面调用
        message = layui.message;
        //主入口
        app.set({
            type: 'iframe'
        }).init();
    });
</script>
{{.Js}}

</body>
</html>
